<?php
/* datos de conexion */
$servidor = "localhost";
$usuario = "root";
$password = "toor";
$base = "ies";

$link = mysql_connect($servidor, $usuario, $password);
mysql_select_db($base, $link);
mysql_query("SET NAMES 'utf8'");


function queryToObject($query){
	
		while($rs = @mysql_fetch_object($query)){
			$result[] = $rs;
		}
		return $result;
}

function queryToArray($query){

	while($rs = @mysql_fetch_array($query)){
		$result[] = $rs;
	}
	return $result;
}

//VARIABLES GLOBALES //
$ciclo_lectivo = 2015;
?>


